﻿#pragma once


// CWorkerDlg 对话框

class CWorkerDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CWorkerDlg)

public:
	CWorkerDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CWorkerDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_WORKER };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	void Refresh(int order = -1);
	CString GetLine(int index);
	afx_msg void OnHeadItemclick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClickedDel();
	afx_msg void OnClickedAdd();
	afx_msg void OnClickedModify();
	afx_msg void OnDblclkWorkerList(NMHDR* pNMHDR, LRESULT* pResult);
	CEdit m_edit_item;
	CComboBox m_combo_item;
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnKillfocusEditItem();
};
